﻿namespace UniSender
{
    public class EmailState
    {
        public virtual string Id { get; set; }

        public virtual MessageStatus Status { get; set; }

        public virtual bool IsError
        {
            get { return Status < 0; }
        }

        public EmailState()
        { }

        public EmailState(Native.EmailState native)
        {
            Id = native.id;
            Status = Utility.ParseEnum<MessageStatus>(native.status);
        }
    }
}
